﻿using System.Data;

using DAL;
using Model;

namespace BLL
{
    public  class AdminUserBLL
    {
        public bool Exists(int ID)
        {
            return AdminUserDAL.Exists(ID);
        }

        public bool CheckLogin(AdminUser  adminUser)
        {
            return AdminUserDAL.CheckLogin(adminUser);
        }

        public DataSet GetEnterpriseUserByName(string eUser)
        {
            return AdminUserDAL.GetListByName(eUser);
        }

        /// <summary>
        /// 更改密码
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="passWord"></param>
        /// <returns></returns>
        public int UpdatePassword(string userName, string passWord)
        {
            return AdminUserDAL.UpdatePassword(userName, passWord);
        }
    }
}
